/** 
 * FileName:     ProductService.java 
 * @Description: TODO(用一句话描述该文件做什么) 
* All rights Reserved, Designed By hnkeystone 
 * Copyright:    Copyright(C) 2010-2011 
 * Company       坚磐科技 
 * @author:    冯辉 
 * @version    V1.0  
 * Createdate:         2017-3-30 下午4:43:31 
 * 
 * Modification  History: 
 * Date         Author        Version        Discription 
 * ----------------------------------------------------------------------------------- 
 * 2017-3-30       hnkeystone.com          1.0             1.0 
 * Why & What is modified: <修改原因描述> 
 */  
package com.fh.service.product;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fh.dao.DaoSupport;
import com.fh.entity.GoodsEntity;
import com.fh.entity.Page;
import com.fh.util.PageData;

/** 
 * @ClassName:     ProductService 
 * @Description:TODO(这里用一句话描述这个类的作用) 
 * @author:    冯辉 
 * @date:        2017-3-30 下午4:43:31 
 *  
 */
@Service("productService")
public class ProductService {
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	/*
	* 获取供应商所有商品数据
	*/
	public List<GoodsEntity> findGoodsBySupplierId(Page pd)throws Exception{
		return (List<GoodsEntity>)dao.findForList("ProductMapper.findGoodsBySupplierId", pd);
	}
}
